import Cookies from 'js-cookie'
const getters = {
  // app
  sidebar: state => state.app.sidebar,
  visitedViews: state => state.app.visitedViews,
  // user
  userinfo: state => state.user.userinfo,
  show: state => state.user.show,
  p: state => state.user.p,
  currPage: state => state.user.currPage,
  updateinfo: state => state.user.updateinfo,
  title: state => state.user.title,
  admininfo: state => Cookies.get('adminName'),
  // console
  indexData: state => state.console1.indexData,
  newdata: state => state.console1.newdata,

  // AlertData
  tableData: state => state.AlertData.tableData
}
export default getters
